package com.xuxin.baby.contract;

import com.xuxin.baby.bean.BaseBean;
import com.xuxin.baby.presenter.ChildDataRecordPresenter;

/**
 * Created by xu_xin
 * Created on 2020/10/22 0022
 * 记身高
 */
public interface ChildDataRecordContract {

    interface Model {

        void record(ChildDataRecordPresenter presenter,
                    String tenantId,
                    String token,
                    String eventDate,
                    String childId,
                    float height,
                    float weight,
                    float headCircle,
                    int sleepHours,
                    int sleepMinutes,
                    String eventType);
    }

    interface View extends BaseContract.view {

        void onSuccess(BaseBean baseBean);
    }

    interface Presenter extends BaseContract.presenter {

        void record(String tenantId,
                    String token,
                    String eventDate,
                    String childId,
                    float height,
                    float weight,
                    float headCircle,
                    int sleepHours,
                    int sleepMinutes,
                    String eventType);

        void onSuccess(BaseBean baseBean);
    }
}